package com.example.homeworkmanagement.service;

import com.example.homeworkmanagement.dto.NotificationsAndClassesTeachersDTO;
import com.example.homeworkmanagement.pojo.Notifications;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.homeworkmanagement.vo.ResultVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 拒绝加班
 * @since 2025-05-25
 */
public interface NotificationsService extends IService<Notifications> {
    // 单表
    // 新增通知
    ResultVO<Notifications> saveNotification(Notifications notifications,String classNames);
    // 根据通知id删除通知
    ResultVO<Notifications> removeNotificationById(Integer notificationId);
    // 根据通知id查询通知
    ResultVO<Notifications> getNotificationById(Integer notificationId);
    // 更新通知
    ResultVO<Notifications> updateNotification(Notifications notifications,String classNames);
    // 根据条件查询通知列表（可扩展，这里简单示例按标题模糊查询）
    ResultVO<List<NotificationsAndClassesTeachersDTO>> getNotificationList(Notifications notifications,String className,String teacherName, int page, int size);
}
